<!DOCTYPE html>
<html>
<head>
<script
	src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>
	$(document).ready(function() {
		//callback handler for form submit
		$("button").click(function(e) {
			console.log("Krishna PRanith");

			$.ajax({
				type: "POST",
				contentType : 'application/json',
				url: "http://localhost:8080/RoosterWeb/Auth/login",
				data: JSON.stringify({ "username":"Krishna0982", "password":"krishna" }),
				dataType: "json",
			    success: function(data){alert(JSON.stringify(data));},
			    failure: function(errMsg) {
			        alert(errMsg);
			    }
				});
		})
		
		function run(data){
			alert("print it mine");
		}
	});
</script>
<script src="js/otherFile.js"></script>

</head>
<body>

	<button>click me to validate URL</button>

<p id="result"> </p>
</body>
</html>
